package mathsTrainingSystem;

//import mathsTrainingSystem.ErrorRecords.ErrorRecorder;

public class ErrorRecords {
	public static class ErrorRecorder {  
        public int a;  
        public int b;  
        public int c;  
        public int flag;  
        public int tag;  
        public int asw;   
    }  
  
    // ErrorRecorder数组  
    private ErrorRecorder[] errorRecorders;  
  
    public ErrorRecords(int size) {  
        errorRecorders = new ErrorRecorder[size];  
        for (int i = 0; i < size; i++) {  
            errorRecorders[i] = new ErrorRecorder();  
        }  
    }  
  
    // 提供一个公共方法来获取数组中的ErrorRecorder对象  
    public ErrorRecorder getErrorRecorder(int index) {  
        if (index >= 0 && index < errorRecorders.length) {  
            return errorRecorders[index];  
        }  
        throw new IndexOutOfBoundsException("Index: " + index + ", Size: " + errorRecorders.length);  
    } 
}
